package org.example.pojo;

public class Order {
    private int id;
    private int userId;
    private int productId;
    private int quantity;
    private String productName; // 商品名称
    private double unitPrice;   // 单价

    // 完整构造函数
    public Order(int id, int userId, int productId, int quantity, String productName, double unitPrice) {
        this.id = id;
        this.userId = userId;
        this.productId = productId;
        this.quantity = quantity;
        this.productName = productName;
        this.unitPrice = unitPrice;
    }

    // Getter 和 Setter 方法
    public int getId() {
        return id;
    }

    public int getUserId() {
        return userId;
    }

    public int getProductId() {
        return productId;
    }

    public int getQuantity() {
        return quantity;
    }

    public String getProductName() {
        return productName;
    }

    public double getUnitPrice() {
        return unitPrice;
    }
}
